package com.bestcem.xm.member.grpc.service.param.member;

import com.bestcem.xm.common.core.constant.RegTypes;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 联系人标签参数校验
 *
 * @author yf.wang <yf.wang@idiaoyan.com>
 * @version V1.0
 * @date 2021/7/16
 */

@Getter
@Setter
public class MemberLabelParam {

    /**
     * 标签值id
     */
    @NotNull(message = "标签值id不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "标签值id格式错误")
    private String id;

    /**
     * 标签id
     */
    @NotNull(message = "标签id不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "标签id格式错误")
    private String labelId;
}
